package com.bosch.in.rtp1.ept.dao;

import java.sql.SQLException;
import java.util.List;

import com.bosch.in.rtp1.ept.model.dto.FXFactor;
import com.bosch.in.rtp1.ept.model.technical.Condition4FxFactor;

/**
 * DAO interface to interact with FX Factor table.
 * @author LIV1HC
 *
 */
public interface FXFactorDao {
	
	/**
	 * Query to get list of FX Factors according to condition criteria , order by month
	 * @param condition4FxFactor	specify search condition
	 * @return list of FXFactor
	 * @throws SQLException
	 */
	List<FXFactor> getFXFactors(Condition4FxFactor condition4FxFactor) throws SQLException;
	
	/**
	 * update FX Factor 
	 * @param fxFactors object
	 * @return true if successfully updated
	 * @throws Exception
	 */
	boolean updateFXFactor(FXFactor fxFactor) throws SQLException;
	
	/**
	 * insert new FX Factor
	 * @param  fxFactors  object
	 * @return true if successfully inserted
	 * @throws Exception
	 */
	boolean insertFXFactor(FXFactor fxFactor) throws SQLException;

}
